﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Fadada.OpenAPI.RemoteModels
{
    /// <summary>
    /// 返回基类
    /// </summary>
    public class BaseResponse<T> where T : class, new()
    {
        public string RequestId { get; set; }

        public int code { get; set; }

        public string msg { get; set; }

        public T data { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool success { get { return code == 100000; } }
    }
}